package com.wrupple.muba.common.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.wrupple.muba.common.domain.Slice;

public class SliceConfiguredEvent extends GwtEvent<HandlesSliceEvents> {

	public static final Type<HandlesSliceEvents> TYPE = new Type<HandlesSliceEvents>();
	Slice configuredSlice;

	public SliceConfiguredEvent(Slice configuredSlice) {
		super();
		this.configuredSlice = configuredSlice;
	}

	@Override
	protected void dispatch(HandlesSliceEvents h) {
		h.onSliceConfigured(this);
	}

	@Override
	public Type<HandlesSliceEvents> getAssociatedType() {
		return TYPE;
	}

	public Slice getConfiguredSlice() {
		return configuredSlice;
	}

}
